﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _008_009_方法的定义_调用与调试_3_方法的重载
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello");
            Console.WriteLine(100);
            Console.WriteLine();
        }
    }

    class Calculatir
    {
        //方法重载  可以方法名相同但是参数类型或者参数数量不同
        public int Add(int a, int b)
        {
            return a + b;
        }

        public int Add(int a,int b, int c)
        {
            return a + b + c;
        }

        public double Add(double a ,double b) 
        {
            return a + b;
        }
    }
}
